Skip to content

Conversation

@thijssnelleman
Copy link
Collaborator

For issue #399 ;

Added test for the raised issue, which passes. Which parts of the documentation should be clarified to reflect that this is indeed tested by ConfigSpace?

Args:
space: Configuration space
vector: Parameter vector
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
vector: Parameter vector
vector: The hyperparameter vector to check.

Raises an Exception if the vector is not valid.
Args:
space: Configuration space
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
space: Configuration space
space: The configuration space to check the parameter vector against.

Args:
space: Configuration space
vector: Parameter vector
allow_inactive_with_values: If True, inactive parameters are allowed to have values in the vector.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
allow_inactive_with_values: If True, inactive parameters are allowed to have values in the vector.
allow_inactive_with_values: If True, inactive hyperparameters are allowed to have values in the vector.

vector: np.ndarray,
allow_inactive_with_values: bool = False,
) -> None:
"""Checks whether a given parameter vector is valid according to the conditionals and forbiddens.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"""Checks whether a given parameter vector is valid according to the conditionals and forbiddens.
"""Check if a given hyperparameter vector is valid according to the conditionals and forbiddens.


# Parameter A has no conditions; check if the configuration fails if a > 10
with pytest.raises(IllegalValueError):
sample["a"] = 101
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this actually trigger a call to check configuration or does this fail somewhere else?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants